cmake_minimum_required(VERSION 3.15)
project(LeetCode2020)

set(CMAKE_CXX_STANDARD 14)

file(GLOB_RECURSE COMMON_CPP RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} common/*.cpp)
file(GLOB_RECURSE COMMON_CPP_H RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} common/*.h)

set(s_113 "solution/113. Path Sum II.cpp")
set(s_114 "solution/114. Flatten Binary Tree to Linked List.cpp")
set(s_115 "solution/115. Distinct Subsequences.cpp")
set(s_116 "solution/116. Populating Next Right Pointers in Each Node.cpp")
set(s_117 "solution/117. Populating Next Right Pointers in Each Node II.cpp")
set(s_118 "solution/118. Pascal's Triangle.cpp")
set(s_119 "solution/119. Pascal's Triangle II.cpp")
set(s_120 "solution/120. Triangle.cpp")
set(s_121 "solution/121. Best Time to Buy and Sell Stock.cpp")
set(s_122 "solution/122. Best Time to Buy and Sell Stock II.cpp")
set(s_123 "solution/123. Best Time to Buy and Sell Stock III.cpp")
set(s_124 "solution/124. Binary Tree Maximum Path Sum.cpp")
set(s_125 "solution/125. Valid Palindrome.cpp")
set(s_126 "solution/126. Word Ladder II.cpp")
set(s_127 "solution/127. Word Ladder.cpp")
set(s_128 "solution/128. Longest Consecutive Sequence.cpp")
set(s_129 "solution/129. Sum Root to Leaf Numbers.cpp")
set(s_130 "solution/130. Surrounded Regions .cpp")
set(s_131 "solution/131. Palindrome Partitioning.cpp")
set(s_132 "solution/132. Palindrome Partitioning II.cpp")
set(s_133 "solution/133. Clone Graph.cpp")

add_executable(main ${s_133} ${COMMON_CPP} ${COMMON_CPP_H})